package com.suncnpap.system.model;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateAfter {

    public static Date getDateAfter(Date d, int day){
        Calendar now =Calendar.getInstance();
        now.setTime(d);
        now.set(Calendar.DATE,now.get(Calendar.DATE)+day);
        return now.getTime();
    }

//    public static void main(String[] args) {
//        Date date1 = new Date();
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
//        String format = sdf.format(date1);
//        System.out.print(format);
//        int i = Integer.parseInt(format);
//        System.out.print(i);
//    }
}
